﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ETALON.WORK
{
    public partial class FormTXT : Form
    {
        public string txtEnter;
        public bool IsEnter;
        
        public FormTXT()
        {
            InitializeComponent(); IsEnter = false; txtEnter = "-";
        }
        public FormTXT(string txtio) : this()
        {
            textBox1.Text = txtio;
        }
        private void textBox1_KeyUp(object sender, KeyEventArgs e)
        {

            if (e.KeyValue == 13) { IsEnter = true; txtEnter = textBox1.Text; this.Close(); }
            else if (e.KeyValue == 27) { IsEnter = false; txtEnter = "-"; this.Close(); }

        }

        
    }
}
